﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 测试项目
{
    class PermissionMenuManager : IPermissionMenuManager
    {
        public void AddDefaultRoleMenuCollection(string[] menu_ids)
        {
        }

        public void AddRoleMenuCollection(string role_id, string[] menu_ids)
        {
        }

        public IEnumerable<IMenu> GetDefaultMenuCollection()
        {
            yield return new Menu { Name = "A_2", Parent = "A" };
        }

        public IEnumerable<IMenu> GetMenuCollection()
        {
            yield return new Menu { Name = "A" };
            yield return new Menu { Name = "A_1", Parent = "A" };
            yield return new Menu { Name = "A_2", Parent = "A" };
        }

        public IEnumerable<IMenu> GetRoleMenuCollection(string role_id)
        {
            yield return new Menu { Name = "A_2", Parent = "A" };
        }

        public void RemoveDefaultRoleMenuCollection(string[] menu_ids)
        {
        }

        public void RemoveRoleMenuCollection(string role_id, string[] menu_ids)
        {
        }
    }
}
